
#pragma once
#include "avutil.h"

typedef struct 
{
	PixelFormat pix_fmt;
	GUID subtype;
}Fmt2SubType;


PixelFormat GetFFPixelFormat(GUID subType);
GUID  GetMediaSubType(PixelFormat pixFMT);
BOOL  VideoAM2FM(AM_MEDIA_TYPE* pmt, PixelFormat& fmt, int &w, int &h);
BOOL  AudioAM2FM(AM_MEDIA_TYPE* pmt, int& nchannels, int& sampleRate);
